using AdminSystem.API.DTOs;

namespace AdminSystem.API.Services
{
    public interface IPermissionService
    {
        Task<List<PermissionDto>> GetAllPermissionsAsync();
        Task<PermissionDto?> GetPermissionByIdAsync(int id);
        Task<PermissionDto> CreatePermissionAsync(CreatePermissionDto createPermissionDto);
        Task<PermissionDto?> UpdatePermissionAsync(int id, UpdatePermissionDto updatePermissionDto);
        Task<bool> DeletePermissionAsync(int id);
    }
}
